package com.dongdongshop.api.fallback;

import com.dongdongshop.api.GoodsServiceApi;
import com.dongdongshop.data.Result;
import com.dongdongshop.dto.ItemDTO;
import com.dongdongshop.enums.ResultEnum;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class GoodsServiceApiFallback implements GoodsServiceApi {
    @Override
    public Result<ItemDTO> getItemById(Long itemId) {
        return Result.RESPOSE(ResultEnum.FALLBACK);
    }

    @Override
    public Result subStockCount(List<ItemDTO> itemDTOList) {
        return Result.RESPOSE(ResultEnum.FALLBACK);
    }
}
